package com.zmn.oms.business.interfaces.work.distribute;

import com.zmn.oms.model.dto.timeout.DistributeTimeoutDTO;

/**
 * @author ligang
 * @date:2021/10/20 10:54 上午
 * description:
 */
public interface DistributeTimeoutBservice {
    /**
     * 添加派单超时检查
     *
     * @param orderId
     * @param workId
     */
    void addTimeoutCheck(Long orderId, Long workId);

    /**
     * 处理派单超时
     *
     * @param distributeTimeoutDTO
     */
    void timeoutCheck(DistributeTimeoutDTO distributeTimeoutDTO);

    /**
     * 处理派单超时
     *
     * @param distributeTimeoutDTO
     */
    void timeoutProcess(DistributeTimeoutDTO distributeTimeoutDTO);

    /**
     * 获取派单超时检查延时配置
     *
     * @return
     */
    Integer getDeliverTimeConfigure();
}
